﻿@switch (Value)
{
    case MessageTaskHistoryStatuses.WaitSend:
        <SIcon Size=@Size
       Dark
       Color="emphasis2">
            mdi-clock-outline
        </SIcon>
        break;
    case MessageTaskHistoryStatuses.Sending:
        <SIcon Size=@Size
       Dark
       Color="regular3">
            mdi-dots-horizontal-circle-outline
        </SIcon>
        break;
    case MessageTaskHistoryStatuses.Withdrawn:
        <SIcon Size=@Size
       Dark
       Color="emphasis2">
            mdi-keyboard-return
        </SIcon>
        break;
    case MessageTaskHistoryStatuses.Success:
        <SIcon Size=@Size
       Dark
       Color="success">
            mdi-check-circle-outline
        </SIcon>
        break;
    case MessageTaskHistoryStatuses.Fail:
        <SIcon Size=@Size
       Dark
       Color="error">
            mdi-close-circle-outline
        </SIcon>
        break;
    case MessageTaskHistoryStatuses.PartialFailure:
        <SIcon Size=@Size
       Dark
       Color="error">
            mdi-minus-circle-outline
        </SIcon>
        break;
}

@code {
    [Parameter]
    public MessageTaskHistoryStatuses Value { get; set; }

    [Parameter]
    public StringNumber? Size { get; set; }
}
